package com.lw.ssm.mapper;

import com.lw.ssm.pojo.Course;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author Administrator
 * @version 1.0
 * @description:
 * @date 2022/3/10 17:02
 */
public interface CourseMapper {

    @Select("select * from course where c_id=#{id} ;")
    Course findById(Long id);

    @Select("select * from course")
    List<Course> findAll();


    void addCourse(Course course);


    void updateCourse(Course course);

    @Delete("delete from course where c_id=#{id}")
    void deleteCourse(Long id);
}
